package com.hackintosh.flyweight.go;

import java.awt.*;

/**
 * @description：
 * @author：twislyn
 * @date：Created in 2021/05/15
 * @modified By：
 * @version: 1.0
 */
public class WhitePieces implements ChessPieces {
    private String key;

    public WhitePieces(String key) {
        this.key = key;
        System.out.println("具体享元" + this.key + "被创建！");
    }
    @Override
    public void downPieces(Graphics graphics, Point point) {
        graphics.setColor(Color.WHITE);
        graphics.fillOval(point.x, point.y, 30, 30);
    }
}
